﻿using System;

namespace CommLib
{
    public class AndroidCalendar
    {
        public readonly static int FIELD_COUNT = 2;

        private readonly int mId;
        private readonly string mName;

        public AndroidCalendar(String[] data, int firstIdx) 
        {
		    if (data.Length - firstIdx < FIELD_COUNT)
			    throw new ArgumentException("Too few data fields!");

		    mId = int.Parse(data[firstIdx++]);
            mName = data[firstIdx++];
	    }

        public int getId() 
        {
		    return mId;
	    }

	    public String getName() 
        {
		    return mName;
	    }
    }
}
